# -*- coding: utf-8 -*-
# @Time:2021/04/11 14:43
# @Author:Cindy

import allure
import pytest


@allure.feature("fixture测试")
class CheckFixture:

    @allure.story('test_search')
    def test_search(self, login):
        print("search")

    @allure.story('test_add_chart')
    @pytest.mark.run(order=1)
    def test_add_chart(self):
        print("add to chart")

    @allure.story('test_order')
    def test_order(self, connectDB):
        print("order")

    @allure.story("cmd参数测试")
    def test_cmdopt(self, cmdopt):
        print("\n--cmdopt的值为:", cmdopt)
